package com.zw.mes.module.assemble.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zw.mes.base.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;
import java.util.Date;

/**
 * @Description: 路线表(发货安装管理专用 领导让与通用字典表区分)
 *
 * @Author: China.wsg
 * @Date: 2021/04/19 15:44
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "asse_route")
public class AsseRoute extends BaseModel {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    /** 编码 */
    private String code;

    /** 名称 */
    private String name;

    /** 排序 */
    private Integer orderNo;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;

    /** 是否删除 1：是， 0：否 */
    @Column(columnDefinition = "tinyint")
    private Integer isDel;
}

